package pcb.control.responders 
{
	import com.intel.service.ServiceEvent;
	import com.intel.utils.Debugger;
	import pcb.control.events.LoadDataEvent;
	
	/**
	 * ...
	 * @author Fintan Boyle
	 */
	public class Re_processorChk extends AbstractResponder 
	{
		
		public function Re_processorChk() 
		{
			
		}
		
		override public function result(e:ServiceEvent):void 
		{
			Debugger.traceOut("Re_processorChk result");
			//Debugger.traceOut(String(e.data));
			
			if (String(e.data).indexOf("intel") > -1) {
				
				Debugger.traceOut("intel processor inside :)");
				
				models.playerStateModel.showEula = true; //will notify view to display EULA
				
				
			}else {
				
				Debugger.traceOut("not an intel processor");
				
				models.playerStateModel.processorWarning = true; //notify view that machine does not use Intel
				
			}
		}
		
	}
	
}